<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>

    <!-- CSS文件 -->
    <link href="${pageContext.request.contextPath}/plugins/css/bootstrap.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/plugins/css/font-awesome.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/plugins/css/animate.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/plugins/css/style.css" rel="stylesheet">
</head>
<body class="fixed-sidebar full-height-layout gray-bg">
<div id="wrapper">
    <!--左侧导航开始-->
    <!--左侧导航开始-->
    <nav class="navbar-default navbar-static-side" role="navigation">
        <div class="nav-close"><i class="fa fa-times-circle"></i>
        </div>
        <div class="sidebar-collapse">
            <ul class="nav" id="side-menu">
                <li class="nav-header">
                    <div class="dropdown profile-element">

                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                               <span class="block m-t-xs"><strong class="font-bold">欢迎你，管理员</strong></span>
                                </span>
                        </a>
                        <ul class="dropdown-menu animated fadeInRight m-t-xs">
                            <li class="divider"></li>
                            <li><a href="javascript:toLogin()">安全退出</a>
                            </li>
                        </ul>
                    </div>
                    <div class="logo-element">H+
                    </div>
                </li>


                <li>
                    <a  data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">
                        <i class="fa fa-columns"></i>
                        <span class="nav-label">基础管理</span>
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level collapse">
                        <li>
                            <a class="J_menuItem" href="${pageContext.request.contextPath}/user/backhome" data-index="0">用户管理</a>
                        </li>
                        <li>
                            <a class="J_menuItem" href="${pageContext.request.contextPath}/userCollection/backhome">用户收藏管理</a>
                        </li>
                       <li>
                             <a class="J_menuItem" href="${pageContext.request.contextPath}/userMessage/backhome">消息推送管理</a>
                        </li>
                        <%--<li>--%>
                            <%--<a class="J_menuItem" href="${pageContext.request.contextPath}/students/index14" data-index="0">学生管理</a>--%>
                        <%--</li>--%>
                        <%--<li>--%>
                            <%--<a class="J_menuItem" href="${pageContext.request.contextPath}/course/index15">课程管理</a>--%>
                        <%--</li>--%>
                    </ul>
                </li>

            <li>
                <a  data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">
                    <i class="fa fa-columns"></i>
                    <span class="nav-label">团购管理</span>
                    <span class="fa arrow"></span>
                </a>
                    <ul class="nav nav-second-level collapse">
                <li>
                    <a class="J_menuItem" href="${pageContext.request.contextPath}/groups/backhome" data-index="0">团购管理</a>
                </li>
                <li>
                    <a class="J_menuItem" href="${pageContext.request.contextPath}/groupImg/backhome">团购图片管理</a>
                </li>
                <li>
                    <a class="J_menuItem" href="${pageContext.request.contextPath}/groupIntroduction/backhome" data-index="0">团购产品介绍管理</a>
                </li>
                <li>
                    <a class="J_menuItem" href="${pageContext.request.contextPath}/groupSalesroom/backhome">团购适用门店管理</a>
                </li>
                <li>
                    <a class="J_menuItem" href="${pageContext.request.contextPath}/groupComment/backhome">团购评价管理</a>
                </li>
                <li>
                    <a class="J_menuItem" href="${pageContext.request.contextPath}/groupCommentImg/backhome" data-index="0">用户团购点评图片管理</a>
                </li>
                </ul>
            </li>



                <li>
                    <a  data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">
                        <i class="fa fa-columns"></i>
                        <span class="nav-label">店铺管理</span>
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level collapse">
                        <li>
                            <a class="J_menuItem" href="${pageContext.request.contextPath}/shop" data-index="0">店铺管理</a>
                        </li>
                        <li>
                            <a class="J_menuItem" href="${pageContext.request.contextPath}/shopCommentReply">店铺点评管理</a>
                        </li>
                        <%--<li>--%>
                            <%--<a class="J_menuItem" href="${pageContext.request.contextPath}/shopCommentImg">用户店铺点评图片管理</a>--%>
                        <%--</li>--%>
                        <li>
                            <a class="J_menuItem" href="${pageContext.request.contextPath}/shopComment" data-index="0">用户店铺点评管理</a>
                        </li>
                        <li>
                            <a class="J_menuItem" href="${pageContext.request.contextPath}/shopCommentCommentary" data-index="0">商品评论点赞管理</a>
                        </li>
                        <%--<li>--%>
                            <%--<a class="J_menuItem" href="${pageContext.request.contextPath}/shopRecommend" data-index="0">推荐菜信息管理</a>--%>
                        <%--</li>--%>
                    </ul>
                </li>


                <%--<li>--%>
                    <%--<a  data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">--%>
                        <%--<i class="fa fa-columns"></i>--%>
                        <%--<span class="nav-label">成绩管理</span>--%>
                        <%--<span class="fa arrow"></span>--%>
                    <%--</a>--%>
                    <%--<ul class="nav nav-second-level collapse">--%>
                        <%--<li>--%>
                            <%--<a class="J_menuItem" href="${pageContext.request.contextPath}/studentgradeps/index41">平时成绩管理</a>--%>
                        <%--</li>--%>
                        <%--<li>--%>
                            <%--<a class="J_menuItem" href="${pageContext.request.contextPath}/studentgradeqz/index42">期中成绩管理</a>--%>
                        <%--</li>--%>
                        <%--<li>--%>
                            <%--<a class="J_menuItem" href="${pageContext.request.contextPath}/studentgradeqm/index43">期末成绩管理</a>--%>
                        <%--</li>--%>
                        <%--<li>--%>
                            <%--<a class="J_menuItem" href="${pageContext.request.contextPath}/studentgradexq/index44" data-index="0">学期成绩管理</a>--%>
                        <%--</li>--%>
                        <%--<li>--%>
                            <%--<a class="J_menuItem" href="${pageContext.request.contextPath}/studentgradexn/index45" data-index="0">学年成绩管理</a>--%>
                        <%--</li>--%>
                    <%--</ul>--%>
                <%--</li>--%>

                <%--<li>--%>
                    <%--<a  data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">--%>
                        <%--<i class="fa fa-columns"></i>--%>
                        <%--<span class="nav-label">系统</span>--%>
                        <%--<span class="fa arrow"></span>--%>
                    <%--</a>--%>
                    <%--<ul class="nav nav-second-level collapse">--%>
                        <%--<li>--%>
                            <%--<a class="J_menuItem" href="${pageContext.request.contextPath}/studentcom/index51" data-index="0">综合素质报告生成</a>--%>
                        <%--</li>--%>
                        <%--<li>--%>
                            <%--<a class="J_menuItem" href="${pageContext.request.contextPath}/page2?uname=${uname}">修改密码</a>--%>
                        <%--</li>--%>
                    <%--</ul>--%>
                <%--</li>--%>



            </ul>
        </div>
    </nav>
    <!--左侧导航结束-->
    <!--右侧部分开始-->
    <div id="page-wrapper" class="gray-bg dashbard-1">

        <div class="row content-tabs">
            <button class="roll-nav roll-left J_tabLeft"><i class="fa fa-backward"></i>
            </button>
            <nav class="page-tabs J_menuTabs">
                <div class="page-tabs-content">
                    <a href="javascript:;" class="active J_menuTab" data-id="index_v0.html">首页</a>
                </div>
            </nav>

            <div class="btn-group roll-nav roll-right">
                <button class="dropdown J_tabClose" data-toggle="dropdown">关闭操作<span class="caret"></span>

                </button>
                <ul role="menu" class="dropdown-menu dropdown-menu-right">

                    <li class="divider"></li>
                    <li class="J_tabCloseAll"><a>关闭全部选项卡</a>
                    </li>
                    <li class="J_tabCloseOther"><a>关闭其他选项卡</a>
                    </li>
                </ul>
            </div>
            <a href="javascript:toLogin()"  class="roll-nav roll-right J_tabExit"><i class="fa fa fa-sign-out"></i> 退出</a>
        </div>
        <div class="row J_mainContent" id="content-main">
            <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="${pageContext.request.contextPath}/backfirstpage" frameborder="0" data-id="" seamless></iframe>
        </div>
        <div class="footer">
            <div class="pull-right">&copy; 2020-2021 <a href="http://www.zi-han.net/" target="_blank">饭团后台管理系统</a>
            </div>
        </div>
    </div>
    <!--右侧部分结束-->

</div>

<!-- 全局js -->
<script src="${pageContext.request.contextPath}/plugins/js/jquery.min.js?v=2.1.4"></script>
<script src="${pageContext.request.contextPath}/plugins/js/bootstrap.min.js?v=3.3.6"></script>
<script src="${pageContext.request.contextPath}/plugins/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="${pageContext.request.contextPath}/plugins/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="${pageContext.request.contextPath}/plugins/js/plugins/layer/layer.min.js"></script>

<!-- 自定义js -->
<script src="${pageContext.request.contextPath}/plugins/js/hplus.js?v=4.1.0"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/plugins/js/contabs.js"></script>

<!-- 第三方插件 -->
<script src="${pageContext.request.contextPath}/plugins/js/plugins/pace/pace.min.js"></script>
<script>
    function toLogin(sid) {

        var f = confirm("确定退出吗？");
        if(f){
            window.location='${pageContext.request.contextPath}/backlogin';
        }
    }
    var websocket;
    // 首先判断是否 支持 WebSocket
    if('WebSocket' in window) {
        websocket = new WebSocket("ws://localhost:8888/fan?loginUserId=12");
    } else if('MozWebSocket' in window) {
        websocket = new MozWebSocket("ws://localhost:8888/fan?loginUserId=12");
    } else {
        websocket = new SockJS("ws://localhost:8888/fan?loginUserId=12");
    }
    // 打开连接时
    websocket.onopen = function(event) {
        console.log(" websocket.onopen  ");
    };
    // 收到消息时
    websocket.onmessage = function(event) {
        console.log("收到一条消息"+event.data);
        alert(event.data);
    };
    websocket.onerror = function(event) {
        console.log("  websocket.onerror  ");
    };
    websocket.onclose = function(event) {
        console.log("  websocket.onclose  ");
    };
</script>
</body>
</html>